<template>
    <div class="sdy-order-list">
      啥都有 订单列表
    </div>
  </template>
  
  <script setup lang="ts">
  // 请求订单列表展示
  import { orderInfoApi } from '@/api/order'
  import { onMounted } from 'vue'
  
  // 获取订单列表
  const getOrderList = async () => {
    const res = await orderInfoApi(window.localStorage.getItem('user_id') as string)
    console.log(res)
  }
  
  onMounted(() => {
    getOrderList()
  })
  
  </script>
  
  <style scoped lang="scss"></style>
  